package com.lightboat.system.domain.request;

import io.swagger.v3.oas.annotations.media.SchemaProperty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 分配业务员 请求参数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AssignSalesmanRequest implements Serializable {


    @NotNull(message = "IDS不能为空")
    @Size(min = 1, message = "IDS长度不能小于1")
    @SchemaProperty(name = "IDS")
    private List<Long> ids;

    @NotNull(message = "销售员ID不能为空")
    @SchemaProperty(name = "销售员ID")
    private Long salesmanId;

    @SchemaProperty(name = "备注")
    private String remark;

    /** 物流编号 */
    @SchemaProperty(name = "物流编号,shippingType = 2时必填")
    private String logisticsNo;

    @SchemaProperty(name = "物流平台编码,shippingType = 2时必填")
    private String logisticsPlatformCode;

    // @NotNull(message = "发货类型不能为空")
    @SchemaProperty(name = "发货类型  1 系统发货 2 自主发货，都是我给你传的")
    private Integer shippingType;
}
